Learning Objectives

After completing this lesson, you’ll be able to:

Video

Introduction

Automation Apps allow authorized users to manually trigger Automations via a webpage.

Note

Automation Apps are available in FME Flow 2022.2 and newer.

When you create an Automation app, FME Flow will generate an app page with a valid token that includes the necessary permissions. The app is shared as a URL and may be presented through a customizable web page. By building a Gallery App, you can provide users with access to multiple Automation Apps, workspace apps, and other links from a single, customizable web page. We'll cover Gallery Apps in the next lesson.

The ability to publish Automations as FME Flow Apps enables users to run complex workflows on demand with configurable input parameters. With Automation Apps, we can now trigger more advanced, multi-workspace, and multi-action workflows. This will benefit end-users and allow complex workflows to be created, shared, and leveraged across organizations. 

Building an Automation App

You can create an Automation App by clicking the New button on either the Create Automation App page or the Manage Automation Apps page. You can find both pages under Flow Apps on the side menu panel. Please note that Automation Apps can only be created if the automation trigger uses a manual trigger. Select Create Automation Apps from the drop-down menu:

Build Automation App

 

You will see an error message on the Create Automation App page if you do not have any Manual Trigger Automations.

Error if no Manual Trigger Automations available

Parameters

You will need to configure a few parameters when building your Automation app:

Flow Apps - Create Automation App page

Name: Provide a name for the app. The name appears on the run page for the app and will also become part of the URL for the run page. App names are case-insensitive. The name will appear as <Name> Automation app on the run page.

Title (optional): The title will be displayed at the top of the app in the browser tab

Description (optional): Provide a description or additional information for the app. The text body will be located below the name on the run page.   

Automation: Select an Automation with Manual Trigger. Ensure the Automation is started.

Expiration: FME Flow creates a token to authenticate the Automation app. The token automatically has the necessary permissions required for the user to run the application. You can set the expiration date for the security token of the app. After the token expires, the Automation app will no longer run. The default expiration is ten years from the current date.

Allowed Users: All Automation Apps require the creator to specify which users are allowed access to run the application. When users go to the FME Flow Automation app URL, they must log in to FME Flow first before seeing the run app page. Access to the app is restricted to authorized FME Flow Users who belong to the specified Roles

 

Selecting the Allowed Users

Logging in is required to access the Automation App

Note

You can choose if users must log in to access Workspace Apps, but users must log in to access Automation Apps.

Automation Parameters from Manual Keys

Automation Apps enable complex workflows to be run on demand with configurable input parameters. The manual trigger in Automations can now be configured to prompt you with a list of parameters generated from the existing ones. These parameters will appear on the Automation Apps page. To create manual parameters, you will need to go to Automations > Manual Trigger > Output Attributes> Success > Manual Parameters > Manage.

Note

See the Manual Trigger and Parameters pages in the documentation for more details. The Build Versatile Automations course also has some examples of using output keys.

Once you select Manage, a pop-up window will appear. The left panel allows for parameter management, and the right panel allows for parameter definitions. To define Manual Parameters, click the + button to add a Parameter. Each Parameter must have a unique name and a prompt, and optional definitions to maximize the functionality of them. In the left panel, you can arrange the ordering of parameters with the up and down arrows or by drag and drop.


The left-hand side of the Manual Parameters Editor is where all your created parameters are shown, as well as options to add new ones, reorder, and delete. The right-hand side is where you can find the parameter definitions for the newly created or selected Parameters.

Customize

Like Workspace apps, Automation Apps allow for the flexibility of customizing the appearance of your application. The look and feel of your Automation app can be tailored to your organization’s colors, logo, and images. At the bottom of the Customize section, you also have the option to Run Immediately. This is to specify the app to run as soon as its URL is invoked without displaying a run page. The parameters below used to customize the application run page are all optional. The Icon, Logo, and Banner parameters only support JPEG and PNG file formats. 

Browser Icon (optional): The icon will be visible in the browser tab. There is a 300 KB file size limit for icon images. 

Heading Background Color (optional): Configure the banner's background color at the top of the app page. It appears behind the Heading Banner if transparent. 

Heading Logo (Optional): This will appear above the Heading Banner and/or Heading Background Color. There is a 1 MB file size limit for the image. 

Heading Banner (optional): This image will appear at the top of the app page. If transparent, it appears over Heading Background Color. There is a 1 MB file size limit for the image. 

Footer Text (optional): The text appears below the links on the app page. 

Footer Logo (optional): This appears beneath the Footer Text and behind the Footer Banner if transparent. There is a 1 MB file size limit for the image. 

Footer Banner (optional): An image to comprise the banner at the bottom of the app page. If transparent, it appears over Footer Logo. There is a 1 MB file size limit for the image. 

Run Immediately: Option to configure the Automation app to run immediately once the URL is invoked without displaying a run page. 

Automation Apps Customize parameters

 

Here is an example of an Automation app with and without a customized run page:

Automation App demo page

Automation App Demo page


Click OK, and a message will indicate that FME Flow has created the app and will provide its URL. You may click the Copy icon to copy the URL. To run the app, click the URL. Once your Automation app is created, the security token can be accessed on the API Tokens tab of the Token Management page:App creation confirmation page

Managing Automation Apps

By default, all apps are enabled to run when created. To disable or enable an app, select an app, then select Actions > Disable or Enable from the Manage Automation Apps page.

Like Workspace Apps, you can view or copy the URL from the main Flow Apps > Manage Automation Apps page. You can also change the expiration date of an app by selecting the app and choosing Change Expiration from the Actions dropdown menu.

View and URL buttons 

Change Expiration option

 

Another option to manage the expiration of an Automation app is via the Token Management page. This is because the expiration is managed by the token that authorizes the app's usage. To access the Token Management page, click Manage Tokens from the User Settings dropdown (top right of the FME Flow Web Interface). You should see the token created for your app on the Token Management page. Click it to edit its parameters. You can edit the token description on the page, enable or disable the token (disabling the token will disable your app), and change the expiration date.

Manage Tokens

Token Management page

Automation App Parameters (Keys)

Parameters enable the Automation author to pass data values from one Automation component to the next. With the addition of Automation Apps in FME Flow 2022.2 and newer, three new parameters have been added: 

Automation app parameters become accessible after creating an Automation app from an Automation. Once the app is created, any Action downstream from the Manual Trigger can use Automation app parameters. Inside the Action details, find them in the drop-down menu next to a parameter. The Automation App is listed alongside other types of parameters, such as Manual, Event, etc. Expand Automation App to find the three parameters.

 

Automation app parameters may also be selected from the Text Editor's sidebar.Automation App keys in the Text Editor

Note

For more information on Automations and parameters, please see the Automation Keys: What They Are and Why You Should Use Them webinar. 

Quick Troubleshooting Tips

The selected automation is disabled

Start Automation

Note
For future reading, see these resources:
Documentation: Automation Apps
Documentation: Manual Trigger
Documentation: Gallery Apps
FME Flow Troubleshooting: Users/Roles
FME Flow Documentation - Roles

Have Ideas On How To Improve This?

Help shape the future of FME Flow Automation Apps by adding product suggestions to our Ideas Forum